package org.jeecg.modules.fund.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 基金订单表
 * @Author: jeecg-boot
 * @Date:   2024-08-29
 * @Version: V1.0
 */
@Data
@TableName("userhome_order")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="userhome_order对象", description="基金订单表")
public class UserhomeOrder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**基金id*/
	@Excel(name = "基金id", width = 15)
    @ApiModelProperty(value = "基金id")
    private java.lang.String fundId;

	/**交易类型(1申购 2赎回 3提现)*/
	@Excel(name = "交易类型(1申购 2赎回 3提现)", width = 15, dicCode = "order_type")
	@Dict(dicCode = "order_type")
    @ApiModelProperty(value = "交易类型(1申购 2赎回 3个人钱包提现 4基金钱包提现)")
    private java.lang.Integer type;
	/**金额*/
	@Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private java.lang.Double amount;
	/**状态(0 进行中 1成功 2过期 3异常 4失败)*/
	@Excel(name = "状态(0 进行中 1成功 2过期 3异常 4失败)", width = 15, dicCode = "order_status")
	@Dict(dicCode = "order_status")
    @ApiModelProperty(value = "状态(0 进行中 1成功 2过期 3异常 4失败)")
    private java.lang.Integer status;
	/**订单号*/
	@Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单号")
    private java.lang.String orderNum;
	/**第三方订单号*/
	@Excel(name = "第三方订单号", width = 15)
    @ApiModelProperty(value = "第三方订单号")
    private java.lang.String payNum;
	/**申购id*/
	@Excel(name = "申购id", width = 15)
    @ApiModelProperty(value = "申购id")
    private java.lang.String relationId;
	/**支付方式 1 支付宝 2微信 3 网银 4银盛支付宝 5银盛微信 6银盛网银*/
	@Excel(name = "支付方式 1 支付宝 2微信 3 网银 4银盛支付宝 5银盛微信 6银盛网银", width = 15, dicCode = "pay_type")
	@Dict(dicCode = "pay_type")
    @ApiModelProperty(value = "1微信 2支付宝 3银行卡 4盈盛微信 5盈盛支付宝 6盈盛网银")
    private java.lang.Integer payType;


    /**购买份额*/
    @Excel(name = "购买份额", width = 15)
    @ApiModelProperty(value = "购买份额")
    private java.lang.Double num;


    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;

    /**平台用户id*/
    @Excel(name = "用户Id", width = 15)
    @ApiModelProperty(value = "用户Id")
    private java.lang.Integer userhomeId;

    @Excel(name = "基金名", width = 15)
    @TableField(exist = false)
    private String fundname;

    @Excel(name = "基金code", width = 15)
    @TableField(exist = false)
    private String fcode;

    @Excel(name = "用户名", width = 15)
    @TableField(exist = false)
    private String phone;


    @ApiModelProperty(value = "银行卡id")
    private java.lang.Integer   userhomeBankId;


    @TableField(exist = false)
    private String accountName;

    @TableField(exist = false)
    private String bankName;

    @TableField(exist = false)
    private String bankNumber;

    @ApiModelProperty(value = "相关orderNum")
    private java.lang.String relationOrderNum;

    @ApiModelProperty(value = "签署合同图片")
    private java.lang.String agreeUrl;


    @ApiModelProperty(value = "申请提现金额")
    private java.lang.Double applyAmount;

    @ApiModelProperty(value = "提现方式(1微信 2支付宝 3银行卡)")
    private java.lang.Integer withrawType;

    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "审核时间")
    private java.util.Date examineTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户邮箱")
    private java.lang.String username;

    @ApiModelProperty(value = "审核时间")
    private java.lang.String examineContent;

    @ApiModelProperty(value = "审核图片")
    private java.lang.String examineUrl;






}
